<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit"> 
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> 
<meta name="format-detection" content="telephone=no" /> 
<link rel="shortcut icon" href="images/logo.ico" />
<title>闪度生活</title>
<meta name="keywords" content=" " />
<meta name="description" content=" " />


<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.1.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">

<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/easing.js"></script>
<script src="js/swiper-3.4.1.min.js"></script>
<script src="js/index.js"></script>
<script src="js/main.js"></script>


<script src="./js/vue.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/axios-config.js"></script>
<script src="./js/js.cookie.js"></script>
<script src="./js/utils.js"></script>


</head>

<body>
<div id="app">
<!--  / header  -->
<div class="header_longevity">
    <div class="header_map_longevity">   
        <img src="images/jiantou.png" alt="">
        <span>返回</span>
    </div>
    <div class="logo_longevity">资讯分类</div>  
</div>
<!--  / header  -->


<div class="InformationClassify">
    <div class="InformationClassify1" v-for="Cheats in CheatsCate" @click="jump(Cheats.cate_id)">
        <img :src="Cheats.pic" alt="">
        <div class="InformationClassify1-text">{{Cheats.classname}}</div>
    </div>

</div>
</div>


</body>
<script>
$(window).ready(function(){
	
var vm = new Vue({
		el:"#app",
		data() {
            return {
                CheatsCate: []
            }
		},
    created: function () {
		var $this = this;
    	$this.getCheatsCate();
    	
    },
    mounted:function(){
    	
    },
    methods:{
    	
    	//咨询分类列表
    	getCheatsCate:function(){
    		var $this = this;
    		const data = {
    			token:getCookie("token")
    		}
    		
    		Axios.post(window.Url.Cheats_cate,data).then((res) => {
    			
    			if(res.result == 1){
    				$this.CheatsCate = res.info.cate;
    			}
    			else{
    				console.log('咨询分类列表:'+res.info);
    			}
    			
	        }).catch((err) => {
	          console.log('咨询分类列表:'+err);
	        })
    	},
    	jump:function(cate_id){
    		setCookie('Cheats_cate_id',cate_id);
		    window.location.href = "longevity1.html";
    	}
    }
})


$('.banner').height($(window).width()*400/750);

var mySwiper_banner = new Swiper ('.swiper-container-banner', {
    loop: true,
    pagination: '.swiper-pagination-banner',
	autoplay : 5000,
	autoplayDisableOnInteraction : false,
})
$('.header_map_longevity').click(function(){
    history.go(-1);
});
$('.longevity1 li').click(function(){
    window.location.href = "InformationDetails.html";
});
/*$('.InformationClassify1').click(function(){
    var str1=$(this).find('.InformationClassify1-text').html();
    sessionStorage.setItem('title1',str1);
    window.location.href = "longevity1.html";
})*/

  
})  
</script>
</html>
